package com.lby.psychology.model.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalTime;
import java.util.Date;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * psyc_exam_record
 * @author
 */

@Data
@Schema(name = "考试记录")
public class PsycExamRecord implements Serializable {
    /**
     *  id
     */
    @Schema(description = "id")
    private Long recordId;

    /**
     * 用户id
     */
    @Schema(description = "用户id")
    private Long userId;

    /**
     * 量表id
     */
    @Schema(description = "量表id")
    private Integer scaleId;

    /**
     * 用时
     */
    @JsonFormat(pattern = "HH:mm:ss")
    @Schema(description = "用时")
    private LocalTime useTime;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private Date createDate;

    /**
     * 更新时间
     */
    @Schema(description = "更新时间")
    private Date updateDate;

    /**
     * 答题记录正文
     */
    @Schema(description = "答题记录正文")
    private byte[] recordContent;

    /**
     * 答题评判正文
     */
    @Schema(description = "答题评判正文")
    private byte[] judgeContent;

    @Serial
    private static final long serialVersionUID = 1L;
}
